﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using PerfumeShopManagement.Model;

namespace PerfumeShopManagement.DAL
{
    public abstract class DalAbstractBase<T, Tid> : IDal<T, Tid>
    {
        protected perfume_dbEntities _context = new perfume_dbEntities();

        public abstract T GetObjectById(Tid id);
        public abstract List<T> GetAllObjects();
        public abstract List<T> GetObjectsByCriteria(T obj);
        public abstract bool Insert(T obj);
        public abstract bool Update(T obj);
        public abstract bool DeleteById(Tid id);
    }
}
